<style>
    #layui-upload-box li{
        width: 120px;
        height: 100px;
        float: left;
        position: relative;
        overflow: hidden;
        margin-right: 10px;
        border:1px solid #ddd;
    }
    #layui-upload-box li img{
        width: 100%;
    }
    #layui-upload-box li p{
        width: 100%;
        height: 22px;
        font-size: 12px;
        position: absolute;
        left: 0;
        bottom: 0;
        line-height: 22px;
        text-align: center;
        color: #fff;
        background-color: #333;
        opacity: 0.6;
    }
    #layui-upload-box li i{
        display: block;
        width: 20px;
        height:20px;
        position: absolute;
        text-align: center;
        top: 2px;
        right:2px;
        z-index:999;
        cursor: pointer;
    }
    #clearName{
        display: none;
    }
</style>
<script>
    layui.use(['element','form'],function () {
        var element = layui.element;
        var form = layui.form;

        $("#getmap").click(function () {
            if(!$("#city").val()){
                layer.msg('请选择区域')
                return
            }
            var city = $("#city").val();
            if (!city.length) {
                layer.msg('请选择区域',{icon: 7});
            }else{
                // var uri = $("#uri").val();
                var url = '/admin/property/position/'+city
                layer.open({
                    type: 2,
                    title:'地图标记',
                    content: [url, 'no'],
                    area : ['100%','100%'],
                    shade : 0.2,
                    resize:true,
                    iframeAuto:true
                });
            }
        })
    })


</script>
